from rest_framework import serializers

from apps.recruit.models import Recruit, Enterprise



class RecruitSerializer(serializers.ModelSerializer):

    class Meta:
        model = Recruit
        fields = "__all__"

class EnterpriseSerializer(serializers.ModelSerializer):
    recruits = RecruitSerializer(many=True)
    class Meta:
        model = Recruit
        fields = "__all__"


